@import "compass";
@import "common.scss";


// account.html

.account-nav{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    background-color: #4184f3;
    background-image: url('../../image/logo.png');
    background-repeat: no-repeat;
    background-size: 33px;
    background-position-y: center;
    background-position-x: 10px;
    text-align: center;
    padding: 16px 0 15px;
    @include box-shadow(0 1px 2px rgba(0,0,0,0.16),0 1px 4px rgba(0,0,0,0.23));
    font-size: 1.4rem;
    z-index: 10;
}

.account-part{
    margin-bottom: 10px;
    padding: 10px 16px;
    h2{
        margin-bottom: 15px;
        font-weight: 300;
        font-size: 26px;
        color: rgba(0,0,0,0.7);
    }
    li{
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.12);
        &:last-child{
            border: none;
        }
    }
}

.account-bookname{
    display: block;
    margin-bottom: 8px;
    color: #181818;
    font-size: 1.05rem;
    font-weight: 300;
}

.account-bookresidue, .account-bookdate{
    color: #737373;
    font-size: 0.9rem;
}

.account-bookdate{
    font-size: 0.77rem;
    vertical-align: text-bottom;
}

.account-renew-btn{
    &:active{
        background-color: #D2D2D2;
    }
    background-color: #EBEBEB;
    border: 1px solid #E1E1E1;
    border-radius: 3px;
    color: #505E69;
    outline: none;
    font-size: 1rem;
    padding: 5px 10px;
    float: right;
    margin-top: -10px;
    margin-right: 14px;
}

.account-renew-btn-disabled{
    position: relative;
    &:active{
        background-color: #EBEBEB;
    }
    &:after{
        content: ' ';
        position: absolute;
        top: 12px;
        left: 2px;
        width: 47px;
        height: 1px;
        background: #505E69;
        @include transform( rotate(21deg) );
    }
}

.account-bookmeta{
    display: block;
    color: #737373;
    font-size: 0.85rem;
    padding: 2px 0px;
}


// search.html

.search-nav{
    width: 100%;
    color: white;
    background-color: #4184f3;
    padding: 13px 30px 12px;
    @include box-shadow(0 1px 2px rgba(0,0,0,0.16),0 1px 4px rgba(0,0,0,0.23));
    z-index: 999;
    text-align: center;
    @include box-sizing(border-box);
    position: fixed;
    top: 0;
    left: 0;
}

.search-input{
    width: 100%;
    font-size: 1.6rem;
    border-radius: 2px;
    padding: 4px 4px 4px 40px;
    color: #212121;
    @include box-sizing(border-box);
    background-image: url('../../image/search-icon.svg');
    background-repeat: no-repeat;
    background-size: 23px;
    background-position-y: center;
    background-position-x: 10px;
    @include input-placeholder{
        padding-top: 0.375rem;
        padding-left: 0.4rem;
        font-size: 1rem;
    }
}

.search-title{
    margin-top: 10rem;
    padding: 0 16px;
    line-height: 1.6rem;
    color: rgba(117, 117, 117, 0.6);
    font-size:1.2rem;
    font-weight: 300;
    text-align: center;
}

.search-fun{
    text-align: center;
    margin: 20px 0;
}

.search-go-btn{
    background-color: #EBEBEB;
    border: 1px solid #E1E1E1;
    border-radius: 3px;
    color: #505E69;
    padding: 6px 8px;
    margin: 0 4px;
    &:visited{
        color: #505E69;
    }
    &:active{
        background-color: #D2D2D2;
    }
}

.search-books{
    padding: 0 8px;
}

.search-searching{
    text-align: center;
    margin-top: 100px;
    color: #505E69;
}

.search-each-book{
    height: 105px;
    border-bottom: 1px solid #DEDEDE;
    padding: 6px 0;
    box-sizing: border-box;
}

.search-book-img{
    height: 100%;
    float: left;
}

.search-book-intro{
    padding-left: 80px;
}

.search-book-title{
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 1.16rem;
    padding: 6px 0;
}

.search-book-base{
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #737373;
    font-size: 0.9rem;
    padding: 2px 0;
}

.search-next-info{
    text-align: center;
    padding: 30px 0;
    color: #505E69;
}

.search-info{
    padding-bottom: 5px;
    font-size: 0.8rem;
    color: #505E69;
}

.search-book-detail-box{
    height: 100px;
    border: 1px solid #DEDEDE;
    border-top: none;
    margin: 0px 10px;
    padding-top: 5px;
    @include border-radius(0 0 2px 2px);
    span{
        display: block;
        font-size: 0.8rem;
        padding: 3px 9px;
        color: #737373;
        text-align: left;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        letter-spacing: 0.4px;
        &:nth-child(4){
            padding-left: 74px;
        }
    }
}

.search-tmp-info{
    text-align: center;
    padding: 11px 0;
    color: #505E69;
    font-size: 0.8rem;
}

// bind.html

.bind-nav{
    @extend .account-nav;
}

.bind-username{
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
    color: #757575;
    padding-top: 40px;
}

.bind-btn{
    text-align: center;
    display: block;
    width: 40%;
    margin: 40px auto;
    padding: 0.7rem 0;
    background-color: #E74C3C;
    color: white;
    @include border-radius(3px);
}

.bind-login-form{
    margin-top: 40px;
    text-align: center;
}

.bind-input{
    width: 75%;
    border: 1px solid #95A5A6;
    font-size: 1.2rem;
    padding: 0.64rem;
    line-height: 1;
    @include box-sizing(border-box);
    @include border-radius(0 0 2px 2px);
    &:first-child{
        border-bottom: none;
        @include border-radius(2px 2px 0 0);
    }
    @include input-placeholder{
        padding-top: 0.18rem;
        padding-left: 0.4rem;
        font-size: 1.1rem;
    }
}


// error.html
.error-info{
    @extend .bind-username;
    font-size: 1rem;
}
